Skip to content

Support CPMS test role in shiftstack-qa automation#9

Open
tusharjadhav3302 wants to merge 2 commits into
mainfrom
support_cpms_test_role_tj
Open

Support CPMS test role in shiftstack-qa automation#9
tusharjadhav3302 wants to merge 2 commits into
mainfrom
support_cpms_test_role_tj

Conversation

@tusharjadhav3302
Copy link
Copy Markdown

Summary

  • Add new cpms_test stage role that runs the upstream cluster-control-plane-machine-set-operator e2e tests (presubmit + periodic) with branch fallback logic for newer OCP versions
  • Add cpms_replace_attrs day2ops procedure ported from the openshift-ir-plugin, which validates CPMS reconciliation by patching failure domains, networks, and security groups on control plane nodes
  • Wire the new stage into ocp_testing.yaml and enable it in osp_verification and 4.17_ovnkubernetes_ipi job definitions

Details

The CPMS operator manages the lifecycle of OCP control plane machines. This PR ports the existing Jenkins/IR-based CPMS testing into shiftstack-qa's Ansible automation framework.
New cpms_test stage role:

  • Clones the upstream operator repo at the correct release branch (with fallback to main for versions without a release branch)
  • Runs make e2e-presubmit and make e2e-periodic with OPENSHIFT_CI=true for JUnit output
  • Post-processes results (XML tag modification, HTML conversion) and copies to the report directory for Polarion/ReportPortal
    New cpms_replace_attrs day2ops procedure:
  • Creates a test network, subnet, and security group in OpenStack
  • Patches the CPMS to inject these resources and swap failure domain attributes between masters
  • Waits for full CPMS reconciliation (rolling all 3 control plane nodes)
  • Validates that the resulting VMs reflect the expected AZ, volume type, network, and SG changes
  • Restores the original CPMS configuration and cleans up test resources

@tusharjadhav3302 tusharjadhav3302 added the enhancement New feature or request label May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

1 participant